package com.xinhe.web.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
@Data
@ApiModel(description = "购物车保存对象")
public class ShopCartModel {
    @NotNull(message = "购买物数量不能为空")
    @Min(value = 1L, message = "数量不能小于1")
    @ApiModelProperty("购买物数量")
    private Integer amount;
    @ApiModelProperty("商品id")
    private Long goodsId;
    @NotNull(message = "商品规格不能为空")
    @ApiModelProperty("商品规格id")
    private Long goodsPriceId;
    @ApiModelProperty("订单类型 COMMON(\"普通订单\") SECKILL(\"秒杀订单\") EAM(\"拼团订单\")")
    private String orderType;
    @ApiModelProperty("专区类型 0普通 1帮扶 2家园 3链动 4易品")
    private Integer zoneType = Integer.valueOf(0);



}
